package com.jianli.smart.controller;

import com.jianli.smart.core.annotation.Controller;
import com.jianli.smart.core.annotation.Inject;
import com.jianli.smart.core.annotation.RequestMapping;
import com.jianli.smart.core.entity.Param;
import com.jianli.smart.core.entity.View;
import com.jianli.smart.service.UserService;

@Controller
public class UserController2 {
	@Inject
	private UserService userService;

	@RequestMapping(value="/date2",method="GET")
	public View getDate(Param param){
		userService.dbTransaction();
		View view = new View("hello.jsp");
		view.addModel("currentTime", userService.getDateTime());
		return view;
		
	}
}
